/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Validator;

import java.util.Random;

/**
 *
 * @author ADMIN
 */
public class RandomString {
 public static String randomString(){
        @SuppressWarnings("RedundantStringConstructorCall")
        String str=new  String("QAa0bcLdUK2eHfJgTP8XhiFj61DOklNm9nBoI5pGqYVrs3CtSuMZvwWx4yE7zR");
        @SuppressWarnings("StringBufferMayBeStringBuilder")
 	StringBuffer sb=new StringBuffer();
 	Random r = new Random();
 	int te=0;
 	for(int i=1;i<=30;i++){
 		te=r.nextInt(62);
 		sb.append(str.charAt(te));
 	}
 	return sb.toString();
 }
}
